package com.producteev4j.model.response;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * Created by IntelliJ IDEA.
 * User: jcarrey
 * Date: 14/05/11
 * TimeImpl: 18:45
 * To change this template use File | Settings | File Templates.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.ANY)
public class BaseResponse implements ProducteevResponse {

    private StatsWrapper stats;

    private ProducteevErrorImpl error;

    public ProducteevErrorImpl getError() {
        return error;
    }

    public void setError(final ProducteevErrorImpl error) {
        this.error = error;
    }

    public boolean isError() {
        return error != null;
    }

    public StatsWrapper getStats() {
        return stats;
    }

    public void setStats(final StatsWrapper stats) {
        this.stats = stats;
    }
}
